package top.laoshuzi.designpatterns.base.behavior.mediator;

/**
 * 抽象同事
 */
public abstract class Colleage {

    private int value;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public abstract void setValueByAffect(Mediator mediator, int value);

    @Override
    public String toString() {
        return "Colleage{" +
                "value=" + value +
                '}';
    }
}
